home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 February / Gamestar_81_2006-02_dvd.iso / Red Shark / Villages / Common.script < prev    next >
Text File  |  2001-10-17  |  808b  |  30 lines

  1. //-------------------------------------------------------------------
  2. //
  3. //  This code is copyright 2001 by G5 Software.
  4. //  Any unauthorized usage, either in part or in whole of this code
  5. //  is strictly prohibited. Violators WILL be prosecuted to the
  6. //  maximum extent allowed by law.
  7. //
  8. //-------------------------------------------------------------------
  9.  
  10. class CBaseForAllVillages
  11. {
  12.   void OnDetonation(
  13.       string _SourceType,   // source type (explosion type)
  14.       matrix _SourcePlace,  // source place
  15.       float  _Radius        // damage radius
  16.     )
  17.   {
  18.     if (_SourceType == "SphericExplosion")
  19.     {
  20.       DestroyFence(_SourcePlace, _Radius);
  21.     }
  22.     else
  23.     if (_SourceType == "WaveExplosion")
  24.     {
  25.       DestroyFence(_SourcePlace, _Radius);
  26.     }
  27.   }
  28. }
  29.  
  30.